package com.yyt2021.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yyt2021.datasource.annotation.DataSource;
import com.yyt2021.entity.Demo;
import com.yyt2021.mapper.DemoMapper;

@DataSource
@Service
public class DemoServiceImpl implements DemoService {

	@Autowired
	DemoMapper demoMapper;
	
	@Override
	//@DataSource
	public Demo selectById(String globalcode,Long id) {
		Demo demo = demoMapper.selectById(id);
		return demo;
	}

}
